package com.cristina.attention.utils;

/**
 * @Author superman
 * @Date 2021/12/1 19:34
 **/
public class AttentionCommon {

    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";
    /**
     * win 系统
     */
    public static final String WIN = "win";

    /**
     * mac 系统
     */
    public static final String MAC = "mac";

    /**
     * 加锁时间
     */
    public static final long LOCK_TIMEOUT = 300;

    public static final Boolean FALSE = false;

    public static final Boolean TRUE = true;

    public static final String DESCRIPTION = "我们已经是好友了!";

    public static final String HEADER_VALUE_GATEWAY = "header_value_gateway";

    public static final String HEADER_TOKEN_GATEWAY = "header_token_gateway";

    public static final long DELTA = 1;

    public static final String DEFAULT_TOPIC = "attention";

    public static final String EVENT_LOG = "log";

    /**
     * 私聊
     */
    public static final int TYPE_SIMPLE = 0;
    /**
     * 群聊
     */
    public static final int TYPE_GROUP = 1;
    /**
     * 系统通知
     */
    public static final int TYPE_SYSTEM = 2;

    /**
     * 常用接口
     */
    public static class Url {
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }
}
